package com.zaoniao.enstudy.infracore.config.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * 微信支付配置
 * @author liulb666
 */
@Component
@ConfigurationProperties(prefix="wx.miniapp")
@PropertySource("classpath:properties/miniapp.properties")
@Data
public class WxMaProperties {

	/**
	 * 设置微信小程序的appid
	 */
	private String appid;

	/**
	 * 设置微信小程序的Secret
	 */
	private String secret;

	/**
	 * 消息格式，XML或者JSON
	 */
	private String msgDataFormat;

}
